package com.kaishengit.action;

import java.util.List;

import org.apache.struts2.convention.annotation.Action;
import org.springframework.beans.factory.annotation.Autowired;

import com.kaishengit.pojo.Project;
import com.kaishengit.service.ProjectService;

public class ProjectAction{
	private ProjectService projectService;
	private List<Project> projectList;
	
	public String execute(){
		return "success";
	}
	@Action("")
	public String list(){
		projectList=projectService.findAll();
		return "success";
	}
	
	@Autowired
	public void setProjectService(ProjectService projectService) {
		this.projectService = projectService;
	}
	public List<Project> getProjectList() {
		return projectList;
	}
	public void setProjectList(List<Project> projectList) {
		this.projectList = projectList;
	}
	
}
